package com.bit.demo;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/hello")
@RestController
public class HelloController {

//    @RequestMapping(value = "/world", method = RequestMethod.POST)
//    @PostMapping("/world")
    @RequestMapping(value = "/world", method = RequestMethod.GET)
//    @GetMapping("/world")
    public String hello(){
        System.out.println("hello, Spring Boot");
        return "hello, Spring boot!";
    }
}
